# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=oed
pkgver=6.7
pkgrel=0
pkgdesc="Portable version of the OpenBSD ed text editor"
url="https://github.com/ibara/oed"
arch="all"
license="BSD-2-Clause AND ISC"
subpackages="$pkgname-doc"
options="!check" # no test suite
source="https://github.com/ibara/oed/releases/download/oed-$pkgver/oed-$pkgver.tar.gz"
builddir="$srcdir/oed-$pkgver"

build() {
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--program-name=$pkgname
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
1fcd33c0d84646d4a0d6a47cdf47536bd4d920d49d5294ad598f6aee6c48c344bbe263636ce7561a2c295429f59514940bec7050b50dfe7e2b89ef3b4ef2e777  oed-6.7.tar.gz
"
